package vn.vfriends.mcms.site.ws.exception;

import javax.xml.ws.WebFault;

/**
 *
 * @author tuan@vffriends.vn
 */

public class WSException extends Exception {

    public static final String AUTHENTICATION_FAILED = "01";
    
    public static final String ERROR = "02";
    
    private String code;
    
    private String message;

    public WSException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    
    @Override
    public String getMessage() {
        return message;
    }
    
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}